#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
int main()
{
	int a;
	int b;
	scanf("%d\n"," % d\n", &a, &b);
	printf("%d\n", a / b);
	printf("%d\n", a | b);



	return 0;
}